var b

function foo(a) {
  console.log(a + b);
}

foo(2)

b = 1